require("iview/dist/styles/iview.css")
//require("mapbox-gl/dist/mapbox-gl.css")
require("mapbox-gl-geocoder/dist/mapbox-gl-geocoder.css")

import Vue from 'vue'
import Router from 'vue-router'
import Resource from 'vue-resource'
import iView from 'iview';

import App from './views/App'

import MapView from './components/MapView'
import ToolBar from './components/ToolBar'

Vue.config.debug = true;
Vue.use(Router);
Vue.use(Resource);
Vue.use(iView);

Vue.component('go-mapview',MapView);
Vue.component('go-toolbar',ToolBar);


var router = new Router({
  history: false
});

router.map({
  '/': {
    component: function (resolve) {
      require(['./views/Home.vue'], resolve)
    }
  }
});


router.start(App, '#app');
